Declarative model constraints using OCL

نویسنده

  • Stefan Arnborg
چکیده

A concept called Model Driven Architecture was launched in 2001 by the Object Management Group as a way of supporting Model Driven Engineering. The concept of using models to aid in the design of computer software is not new, however the use of models as a primary design artifact, and tools to automatically generate structural code from them is a newer approach. A typical problem however has been that while models generally give a good overview of structure and flow, it has been hard to express rules and constraints within the model. Statements like “for every yellow car in database table A there should be a driver with favorite color yellow in table B” were impossible to express within the scope of the model. This problem was tackled by the addition of the Object Constraint Language (OCL) into the most common metamodels. OCL is a declarative language used to define constraints on a model. In this thesis I have investigated the possibility to enforce model/data correctness using OCL in real life. The investigation was done implementing an OCL framework into the platform developed by my host company LucidEra Inc. Work has been done assessing where in the LucidEra platform stack application was possible as well as how it could be implemented and made usable. While the initial application attempts were deemed impossible within the given timeframe, the result of this work is an OCL implementation in an internal development tool. Deklarativ modellkontroll med hjälp av OCL

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Translating Essential OCL Invariants to Nested Graph Constraints Focusing on Set Operations

Domain-specific modeling languages (DSMLs) are usually defined by meta-modeling where invariants are defined in the Object Constraint Language (OCL). This approach is purely declarative in the sense that instance construction is not incorporated but has to added. In contrast, graph grammars incorporate the stepwise construction of instances by applying transformation rules. Establishing a forma...

متن کامل

Translating Essential OCL Invariants to Nested Graph Constraints Focusing on Set Operations: Long Version

Domain-specific modeling languages (DSMLs) are usually defined by meta-modeling where invariants are defined in the Object Constraint Language (OCL). This approach is purely declarative in the sense that instance construction is not incorporated but has to added. In contrast, graph grammars incorporate the stepwise construction of instances by applying transformation rules. Establishing a forma...

متن کامل

Declarative Workflow Modeling with UML Class Diagrams and OCL

This paper describes an approach of modeling workflows with UML class diagrams and OCL constraints [OCL06] in a declarative way. These are modeled in the UML tool USE [USE08] that can generate object diagrams (snapshots) out of UML class diagrams. USE checks specified OCL constraints against the generated snapshots. With the declarative workflow modeling approach presented here, activity model ...

متن کامل

Specifying and Implementing the Operational Use of Constraints in Object-Oriented Applications

The design of software applications largely amounts to capturing constraints, representing the domain under study. Current casetools do not provide an unambiguous way to represent constraints and ignore most of the constraints when moving to code. In this article constraints are expressed in the Object Constraint Language (OCL) on class diagrams of the Unified Modelling Language (UML). We prese...

متن کامل

From Core OCL Invariants to Nested Graph Constraints

Meta-modeling including the use of the Object Constraint Language (OCL) forms a well-established approach to design domainspecific modeling languages. This approach is purely declarative in the sense that instance construction is not needed and not considered. In contrast, graph grammars allow the stepwise construction of instances by the application of transformation rules. In this paper, we c...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010